package com.is.add.enmus;

import com.is.add.util.KeyValue;

import java.util.ArrayList;
import java.util.List;

/**
 * 保证金操作类型
 */
public enum DepositOptTypeEnum {
    Recharge("充值"),
    Deduction("扣减"),
    AlipayDump("支付宝转存"),
    Consumption("消费"),
    SettlementDump("结算转存"),
    ChangeInto("转入"),
    TurnOut("转出"),
    Refund("退款");

    private String text;

    DepositOptTypeEnum(String text) {
        this.text = text;
    }

    public String getText() {
        return text;
    }

    public static List<KeyValue> toList() {
        List<KeyValue> list = new ArrayList<>();
        for (DepositOptTypeEnum v: DepositOptTypeEnum.values()) {
            list.add(new KeyValue(v.name(), v.getText()));
        }
        return list;
    }
}
